package day11.handler.simpleChannelHandler.response;

import day11.packet.response.CreateGroupResponsePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author chenshijie
 * @date 2024/1/1 16:52
 */

public class CreateGroupResponseHandler extends SimpleChannelInboundHandler<CreateGroupResponsePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, CreateGroupResponsePacket createGroupResponsePacket) throws Exception {
        System.out.println("群创建成功，群id为 【" + createGroupResponsePacket.getGroupId() +"】 ");
        System.out.println("群里面有: " + createGroupResponsePacket.getUserNameList());
    }
}
